(Bug 37957) Replace php_sapi_name() with PHP_SAPI
authorOri Livneh <ori@wikimedia.org>
Mon, 4 Feb 2013 03:01:17 +0000 (19:01 -0800)
committerOri Livneh <ori@wikimedia.org>
Mon, 4 Feb 2013 20:50:45 +0000 (12:50 -0800)
commit6c163ad26532346ae30984ad1423ee4bf5aed561
tree7470f6323737b1c34402bd6c340eeb8eccb88e2e
parent290fc4de64a8b4503c4b2a25a058b23aa1c390f4
(Bug 37957) Replace php_sapi_name() with PHP_SAPI

The PHP_SAPI constant has been available since PHP 4.2.0. It's more
concise to use the constant and has less overhead than a function call.

Furthermore, PHP_SAPI rhymes with "happy", whereas "php_sapi_name"
rhymes with "lame". QED, etc.

Change-Id: Ie8c121cb8fcef50536af8d3f66723b458f0bf9af
21 files changed:
includes/DefaultSettings.php
includes/ForkController.php
includes/GlobalFunctions.php
includes/api/ApiQuerySiteinfo.php
includes/filebackend/SwiftFileBackend.php
includes/normal/RandomTest.php
includes/normal/Utf8CaseGenerate.php
includes/normal/Utf8Test.php
includes/normal/UtfNormalBench.php
includes/normal/UtfNormalGenerate.php
includes/normal/UtfNormalMemStress.php
includes/normal/UtfNormalTest.php
includes/normal/UtfNormalTest2.php
includes/profiler/ProfilerSimpleText.php
includes/profiler/ProfilerSimpleTrace.php
includes/specials/SpecialVersion.php
maintenance/Maintenance.php
maintenance/dev/includes/router.php
maintenance/locking/LockServerDaemon.php
maintenance/mwdocgen.php
maintenance/proxy_check.php